home *** CD-ROM | disk | FTP | other *** search
/ Light ROM 1 / LIGHT-ROM 1 (Amiga Library Services)(1994).iso / ffdisks / d956.lha / DDBase / docs / ddbase.tutorial < prev    next >
Text File  |  1993-11-26  |  8KB  |  200 lines

  1.                        DDBASE  TUTORIAL.
  2.  
  3.  
  4. NEEDS:
  5.            1- Amiga Computer
  6.            2- WorkBench 2 or above
  7.            3- The program 'DDBASE1
  8.            4- The File ddbase.hlp
  9.            5- Reqtools.library
  10.            
  11.            
  12.  
  13. In this tutorial we shall just learn how to create,add data, and edit
  14. a database.
  15.  
  16. To setup DDBASE see the DDBASE.DOC for details.
  17.  
  18. -------------------------------------------------------------------------
  19. The Tutorial     1>Loading a Database<1
  20. -------------------------------------------------------------------------
  21.  
  22. After the program has loaded and you have selected Ok! from the welcome 
  23. requester you will have to either 1 Load a previously saved file or 2
  24. create a file.
  25.  
  26. Fortunately there is a file for you to look at on the disk called-
  27. testaddress.ddb. Notice the suffix .ddb.This identifies program files
  28. created with DDBASE.
  29.  
  30. So to load this file just follow these simple instructions.
  31.  
  32. 1.1 Move the pointer until its over the gadget called Load {What else would
  33. it be called} and press the left mouse button, or you can use the shortcut
  34. by pressing 'l' on the keyboard.By the way to see what the current shortcuts
  35. are press the letter 'h' or 'H'.
  36.  
  37. If you have been successful a file requester will appear on the screen.To
  38. make your life easier the requester has a pattern match for the suffix
  39. '.ddb'.You should see the file 'testaddress.ddb'.If you cant see this file 
  40. then put the disk that you recieved DDBASE on {A backup I hope} in to a
  41. drive and then select the gadget 'Volumes' or press the right mouse button.
  42. Select the Volume {df0:,df1:,dh0:etc} and then select the file
  43. 'testaddress.ddb'.
  44.  
  45. The mouse pointer will change into a busy pointer.After a few seconds the
  46. file will of loaded.
  47.  
  48. You can move around the file with the cursor keys.
  49.  
  50. Cursor Left == Previous record
  51. Cursor Right== Next Record
  52. Cursor Up   == Last Record
  53. Cursor Down == First Record
  54. Space       == GoTo Record
  55.  
  56. Dont forget to see what the shortcut is press 'h' or 'H'.
  57.  
  58. Or press the Help Key as DDBASE has on line help.You just press the Help
  59. key and then just select the gadget you want help with.
  60.  
  61. ---------------------------------------------------------------------------
  62. Tutorial         2>Create a Database<2
  63. ---------------------------------------------------------------------------
  64.  
  65. If you had loaded a file previously select New and then select Kill! from
  66. the requester.
  67.  
  68. Now select Create. A string requester appears for you to input how many
  69. fields you wish to have {1 to 20}. For now enter 4 and press return.
  70.  
  71. It is always wise to plan your database before you create it {Obvious again!}
  72. ie work out how many fields etc and note them.
  73.  
  74. For this example we are going to create a database with 4 Fields.These will
  75. be:  
  76.  
  77. Field 1      ==  Name
  78. Field 2      ==  Address
  79. Field 3      ==  Post Code
  80. Field 4      ==  Telephone
  81.  
  82. After you have entered 4 in the requester the field requester appears.
  83. You will notice that the FieldName input is Active.So Enter 'Name' for
  84. the first field.Now the Field Length input gadget is active so enter 
  85. 25.Just below this gadget you will notice 'Enter Field Type'.
  86. There are 7 gadgets displayed along the bottom of the requester.At this 
  87. point you can select 'h' for the shortcut or Help for the on line help.
  88. Just for now though select the String gadget{ or 's' -shortcut}
  89.  
  90. What you have entered will now be displayed to see if it is correct.Select
  91. Correct {or press return} and you can enter the next fields.
  92.  
  93. Try doing these your self  they are
  94.  
  95. Address    Length=40   String
  96. Post Code  Length=10   String
  97. Telephone  Length=20   String
  98.  
  99.  
  100. After you have entered these you will now be required to position them on
  101. the screen.
  102.  
  103. The first field {Name} is displayed at the pointer.By moving the mouse
  104. you move the field.Move the field until its about an inch
  105. {or Metric equivalent} from the top and about an inch from the left of the
  106. screen and press the Left Mouse Button.
  107.  
  108. You will go through the same procedure for the other fields.Position the 
  109. other fields with about half an inch below the one in front.
  110.  
  111. Once you have done this you have created you first file in DDBASE.
  112. Dont forget to save this file. 
  113.  
  114. To Save select Save As {save only works if there is a filename already
  115. declared}.If you are not in the desired directory then see the Load
  116. tutorial of how to change directories.
  117.  
  118. Once you are in the correct directory just type a filename,for instance 
  119. myfile,there is no need to add .ddb as the program will do this for you.
  120. After you have entered the filename just press return or select Ok!.
  121.  
  122. --------------------------------------------------------------------------
  123. Tutorial        3>Adding fields <3
  124. --------------------------------------------------------------------------
  125.  
  126. You can add more fields to your file quite easily.First select Organise
  127. If a window does not open then follow the procedure in Load to load a file.
  128.  
  129. You will notice 12 Gadgets.For now select Add Field, or h for shortcut or
  130. press help key and select the gadget you need help with.
  131.  
  132. After you have selected Add Field you will see the Field Definition 
  133. Requester . Enter Comments for the Field name and enter 30 for the length.
  134. Then select the string gadget.Select Ok! if it is correct and then you
  135. can position the field on the screen using the same method described
  136. earlier.
  137.  
  138.  You have just added a field.
  139.  
  140.  Now select Organise and then select Add Field once more.This time enter
  141.  the following into the Field Name:
  142.  
  143.       DDBASE MADCAP-SOFTWARE
  144.       
  145.  For the Length enter 1, this is beacause this field we are using just to
  146.  display DDBASE MADCAP-SOFTWARE and no data. For the field type select
  147.  Text and then select Ok! if it is correct.
  148.  
  149.  Next you will position this field on screen.Position it any where you like
  150.  but please be sensible about it!
  151.  
  152.  The field Type Text,FBox,BBox are all similar as they all display only
  153.  fields.The difference is the text in FBox is displayed in a Flipped Bevel
  154.  Box and BBox in a Bevel Box. The fact that DDBASE uses GadTools.Library
  155.  means that this program will not work on 1.3 machines.
  156.  
  157.  If you have a pre WB2 machine then its tough.If you want to use DDBASE 
  158.  and other Wonderful programs that utilise the many benefits of WB2/WB3
  159.  ,then its time you upgraded. UPGRADE or LOSE OUT on the Benefits of the
  160.  OS2.04 or Higher Machines.
  161.  
  162.  -------------------------------------------------------------------------
  163.  Tutorial      4>Editing Fields<4
  164.  -------------------------------------------------------------------------
  165.  You can Edit,Move,Delete Fields. All these functions can be accessed from
  166.  Organise.
  167.  
  168.  Edit  All you have to do is select the field to edit and just follow the
  169.  instructions.
  170.  
  171.  Delete Field.  Select the field  to delete. The program will ask you if it
  172.  is Ok to delete that field.
  173.  
  174.  Move field.  You can reposition either all or select the field/s you wish
  175.  to reposition.
  176.  
  177.  For more details see the DDBASE.DOC or the Help feature of DDBASE.
  178.  
  179.  --------------------------------------------------------------------------
  180.  Tutorial      5>Search<5
  181.  
  182.  There are two types of Search available.
  183.  First there is a quick search that's the ? Gadget.If you select the Quick
  184.  search all you have to do is enter the word or name that you wish to find
  185.  in the string gadget and press return.The program will then search all the
  186.  fields for any occurance of the search word.
  187.  
  188.  Secondly if you want to search specific fields then select `=' Gadget.
  189.  You can Use:-
  190.          
  191.          ^ - Find any occurance in the field.{Any Field}
  192.          | - Find the Left most occurance.   {Any Field}
  193.          <>- Greater than/Less Than.         {Numeric/Date}
  194.          * - Range Between to Parameters     {Any Field}
  195.          
  196.  See DDBASE.DOC/Guide for more details.
  197.  
  198.  
  199. This concludes the Tutorial for DDBASE Version 3.00
  200.